import asyncRouter from '@/router/asyncRouter.tsx';
// import Message from '@/pages/message/Message.tsx';
// import Index from '@/pages/home/Index.tsx';

import Home from '@/pages/home/Home.tsx'; // 主页
import Login from '@/pages/login/Login.tsx'; // 登录页
import Home_Message from '@/pages/message/Message.tsx'; // 消息页
import Home_Index from '@/pages/home/Index.tsx'; // Home下的首页
export default [
  {
    path: '/',
    redirect: '/home/index',
    exact: true,
    // component: lazy(() => import('@/pages/home/Home.tsx')),
  },
  {
    path: '/login',
    component: Login,
  },
  {
    path: '/home',
    // component: asyncRouter(() => import('@/pages/home/Home.tsx')),
    component: Home,
    // redirect: '/home/index',
    children: [
      { path: '/home/message', component: Home_Message, keepAlive: true },
      { path: '/home/index', component: Home_Index, keepAlive: true },
      // { path: '/home/message', component: Message },
      // { path: '/home/index', component: Index },
    ],
  },
];
